package com.xlhj.yucloud.web.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: liucaijing
 * @description: RouterMenu
 * @date: 2021/9/22 9:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterMenu {

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单路径
     */
    private String path;

    /**
     * 重定向
     */
    private String redirect;

    /**
     * 组件
     */
    private String component;

    /**
     * 元素
     */
    private MetaMenu meta;

    /**
     * 子菜单
     */
    private List<RouterMenu> children;
}
